﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HRMKeyPerformanceAreaList_POP.aspx.cs" Inherits="KPIS.GERP.GHRMS.APP.App_UI.Forms.HRMKeyPerformanceAreaList_POP" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<Link rel="StyleSheet" href="../../Styles/StyleSheet.css" type="text/css" />
<link href="../../Styles/CssClass.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">

        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow)
                oWindow = window.frameElement.radWindow;
            return oWindow;
        }

        function CloseRadWin() {
            var oWnd = GetRadWindow();
            oWnd.close();
        }

        function minmax(value, min, max) {
            if (parseInt(value) < 0 || isNaN(value)) {
                alert('กรุณากรอกน้ำหนัก');
            } else if (parseInt(value) > 100) {
                alert('น้ำหนักต้องไม่เกิน 100');
                return 100;
            } else return value;
            {

            }
        }

</script>

<head runat="server">
    <title>ขอบเขตความรับผิดชอบ</title>
</head>
<body>

    <form id="form1" runat="server">

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>

    <div class="PanelTopHeader" >
            <table width="100%">
                <tr>
                    <td></td>
                    <td>
                        <asp:LinkButton ID="btnClose" runat="server" CssClass="LinkButtonWhite" 
                              OnClientClick="CloseRadWin()"  > 
                            <img alt="" style="border:0px;vertical-align:middle;" src="../Images/Buttons/Refresh.gif" />&nbsp;แสดงข้อมูลทั้งหมด
                        </asp:LinkButton>&nbsp;&nbsp;&nbsp;
                        <asp:LinkButton ID="btnSave" runat="server" CssClass="LinkButtonWhite" 
                            onclick="btnSave_Click" OnClientClick="return confirm('คุณต้องการบันทึกข้อมูลใช่หรือไม่');" >
                            <img alt="" style="border:0px;vertical-align:middle;" src="../Images/Buttons/saveDisk.gif" />&nbsp;บันทึกข้อมูล
                        </asp:LinkButton>
                    </td>
                </tr>
            </table>
    </div>
        <br />
        <asp:Panel ID="Panel1" runat="server">
            <table width="100%">
                <tr>
                    <td align="right" width="300px">ขอบเขตความรับผิดชอบหลัก :</td>
                    <td>
                        <telerik:RadComboBox ID="cboRadKeyArea" runat="server" Width="250px"
                            DataTextField="key_area_name" DataValueField="key_area_seq" >
                        </telerik:RadComboBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="300px">รายละเอียดงาน :
                        <br />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorKPIUnit" runat="server" Display="Dynamic"
                            ControlToValidate="txtRadKeyDesc" ErrorMessage="กรุณากรอกรายละเอียดงาน">
                        </asp:RequiredFieldValidator>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtRadKeyDesc" runat="server" TextMode="MultiLine" Width="500px" Height="100px">
                        </telerik:RadTextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="300px">น้ำหนัก(%) :</td>
                    <td>
                       <telerik:RadNumericTextBox ID="txtRadKeyWeight" Runat="server" MaxLength="3" MaxValue="100"
                                    onkeyup="this.value = minmax(this.value, 0, 100)">
                                    <NumberFormat DecimalDigits="0" ZeroPattern="n" />
                        </telerik:RadNumericTextBox> &nbsp;&nbsp;&nbsp;%
                       <%-- <telerik:RadNumericTextBox ID="txtRadKeyWeight" runat="server" Width="250px" 
                            onkeyup="this.value = minmax(this.value, 0, 100)" >
                            <NumberFormat DecimalDigits="0" ZeroPattern="n" />
                        </telerik:RadNumericTextBox>
                        <asp:Label ID="Label1" runat="server" Text="%"></asp:Label>--%>
                    </td>
                </tr>
            </table>
        </asp:Panel>
    
    </form>
</body>
</html>
